var rotatoString = function(A,B){
  if(A.length !== B.length){
    return false;
  }
   A = A + A;
   return A.includes(B);
}